package clustersimulator;

import static org.junit.Assert.*;

import org.junit.Test;

public class JobGeneratorTest {

	@Test
	public void testGenerateJobs() {
		JobGenerator generator = new JobGenerator();
		Job[] jobs = generator.generateJobs(0);
		assertTrue(jobs.length >= 0 && jobs.length <= 8);
		for (int i=0; i < jobs.length; i++) {
		    assertTrue(jobs[i].getProcessingTime() >= 1 && jobs[i].getProcessingTime() <= 16);
		    assertTrue(jobs[i].getADOC() >= 1 && jobs[i].getADOC() <= 8);
		}
	}

}
